package service

type IUserService interface {
	GetUname(userId int) string
	GetUage(userId int) int
	GetUlevel(userId int) int
}

type UserService struct {
}

func (s UserService) GetUname(userId int) string {
	info := map[int]string{
		1: "zhangsan",
	}

	return info[userId]
}

func (s UserService) GetUage(userId int) int {
	info := map[int]int{
		1: 12,
	}

	return info[userId]
}

func (s UserService) GetUlevel(userId int) int {
	info := map[int]int{
		1: 15,
	}

	return info[userId]
}
